<?php
namespace Home\Controller;
use Think\Controller;
class CommonController extends Controller {

	public function _initialize(){
	   
    	//获取web配置信息
    	$mod =M("web"); 
        $web = $mod->find();

    	//轮播图
    	$images = M('image')->select();

    	//放置模板中
    	$this->assign('images',$images);
        $this->assign("web",$web);
    }
}
